package com.soft.line.mapper;

import com.soft.line.entity.RoleInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RoleInfoMapper {

    int insert(Map<String,Object> map);

    int update(Map<String,Object> map);

    RoleInfo selectByPrimaryKey(Integer id);

    List<RoleInfo> selectAll(String roleName);

    int delete(@Param("roleId") Integer roleId);

    int countRoleName(@Param("id") Integer id,@Param("roleName") String roleName);

    RoleInfo selectByRoleName(String roleName);

    String selectRoleName(@Param("roleId") int roleId);
}